package com.ys.entity.business;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="`ys_develop_sub`", catalog="id")
public class YsDevelopSub extends BaseEntity<YsDevelopSub> {

	private Long id; // 主键ID
	private String asin; // asin码
	private String code; // 子件编码
	private String name; // 子件名称
	private Integer num; // 子件数量
	private String remark; // 子件备注
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public YsDevelopSub setId(Long id) {
		this.id = id;
		return this;
	}
	public String getAsin() {
		return asin;
	}
	public YsDevelopSub setAsin(String asin) {
		this.asin = asin;
		return this;
	}
	public String getCode() {
		return code;
	}
	public YsDevelopSub setCode(String code) {
		this.code = code;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsDevelopSub setName(String name) {
		this.name = name;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public YsDevelopSub setNum(Integer num) {
		this.num = num;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public YsDevelopSub setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsDevelopSub setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsDevelopSub setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsDevelopSub setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsDevelopSub ysDevelopSub(
		String asin,
		String code,
		String name,
		Integer num,
		String remark,
		Integer status
			) {
		YsDevelopSub entity = new YsDevelopSub();
		entity.setAsin(asin);
		entity.setCode(code);
		entity.setName(name);
		entity.setNum(num);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}